package com.zj.blockchain.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @className: Message
 * @description: TODO 类描述
 * @author: allnas
 * @date: 2020/3/1
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Message implements Serializable {
    /**
     * 消息类型
     */
    private int type;

    /**
     * 消息内容
     */
    private String data;

    public Message(int type) {
        this.type = type;
    }
}
